package com.ease.common.util;

import java.io.IOException;
import java.io.InputStream;

/**
 * 
 * @author nathanleewei
 * 
 */
public abstract class IoUtil {
	@Deprecated
	/* org.apache.commons.io.IoUtils.toString(inputStream, "UTF-8") */
	public static String readStringFromStream(InputStream in) throws IOException {
		int length = in.available();
		byte[] bytes = new byte[length];
		in.read(bytes);
		in.close();
		return new String(bytes);
	}
}
